<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="../css/eui.css">
</head>
<body>
<div  id="app" style="margin-right: 250px;margin-left:250px">
        <el-descriptions class="margin-top" title="个人简历" :column="2" border >
            <template slot="extra">
                <el-button @click="jump()" type="primary" size="small">
                    编辑个人简历</el-button>
            </template>
            <el-descriptions-item >
                <template slot="label">
                    <i class="el-icon-user"></i>
                    姓名
                </template>
                {{empInfo.name}}
            </el-descriptions-item>
            <el-descriptions-item>
                <template slot="label">
                    <i class="el-icon-mobile-phone"></i>
                    出生日期
                </template>
                {{empInfo.birthday}}
            </el-descriptions-item>
            <el-descriptions-item>
                <template slot="label">
                    <i class="el-icon-location-outline"></i>
                    学历
                </template>
                {{empInfo.education}}
            </el-descriptions-item>
            <el-descriptions-item>
                <template slot="label">
                    <i class="el-icon-tickets"></i>
                    毕业院校
                </template>
                {{empInfo.college}}
            </el-descriptions-item>
            <el-descriptions-item>
                <template slot="label">
                    <i class="el-icon-tickets"></i>
                    专业
                </template>
                {{empInfo.major}}
            </el-descriptions-item>
            <el-descriptions-item >
                <template slot="label">
                    <i class="el-icon-tickets"></i>
                    期望行业
                </template>
                {{intention.desiredIndustry}}
            </el-descriptions-item>
            <el-descriptions-item >
                <template slot="label">
                    <i class="el-icon-tickets"></i>
                    期望工作
                </template>
                {{intention.desiredJob}}
            </el-descriptions-item>
            <el-descriptions-item>
                <template slot="label">
                    <i class="el-icon-tickets"></i>
                    期望地点
                </template>
                {{intention.desiredLocation}}
            </el-descriptions-item>
            <el-descriptions-item>
                <template slot="label">
                    <i class="el-icon-tickets"></i>
                    期望年薪
                </template>
                {{intention.annualSalary}}
            </el-descriptions-item>
            <el-descriptions-item>
                <template slot="label">
                    <i class="el-icon-tickets"></i>
                    工作经历
                </template>
                {{empInfo.work}}
            </el-descriptions-item>

        </el-descriptions>
</div>
</body>
<!-- import Vue before Element -->
<script src="../js/vue.js"></script>
<! -- import JavaScript -->
<script src="../js/eui.js"></script>
<script src="../js/axios.min.js"></script>
<script>
    let v=new Vue({
        el: '#app',
        data :{
            empInfo: {},
            intention: {},
        },
        created: function () {
            axios.get("/empInfo/select").then(function (response) {
                console.log("发送了" + v.empInfo);
                    v.empInfo=response.data;
            });
            axios.get("/intention/select").then(function (response) {
                console.log("发送了" + v.intension);
                v.intension=response.data;
            })
        },
        methods:{
            jump(){
                location.href="/emp/personalData.html";
            }
        }
    })
</script>
</html>
